﻿<!doctype html>
<html class="no-js" lang="en" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/extras/spring-security">

<head th:replace="~{/public::public-head}"></head>

<link rel="stylesheet" type="text/css" th:href="@{/css/vendor/bootstrap-datetimepicker.min.css}">
<link rel="stylesheet" type="text/css" th:href="@{/css/jquery-labelauty.css}">

<style type="text/css">
    .create-photo-left{
        width: 550px;
        height: 200px;
        background-repeat: no-repeat;
        background-size: 100% 100%;
    }
    .error{
        color: red;
        text-align: center;
    }
</style>

<body class="template-color-1">

    <div id="main-wrapper">
        <div th:insert="~{/public::navigate}"></div>
        <div style="height: 100px; border-bottom: 1px solid #e2e4ea"></div>

        <!-- 中间部分 Start -->
        <div class="dashboard-content-section section bg_color--5">
            <div class="container-fluid p-0">
                <div class="row no-gutters">
                    <!-- 侧边栏 -->
                    <div th:replace="~{/public::sidebar(active='createAdvertisement')}"></div>
                    <!-- 具体内容 -->
                    <div class="col-xl-10 col-lg-9">
                        <div id="forbidden" hidden> 当前账号已被限制使用 </div>

                        <div class="dashboard-main-inner">
                            <div class="row">
                                <div class="col-12">
                                    <div class="page-breadcrumb-content mb-40">
                                        <h1>新增广告内容</h1>
                                    </div>
                                    <div sec:authentication="authorities" hidden id="authorities"></div>
                                    <span  sec:authorize="isAuthenticated()" sec:authentication="principal.userId"
                                           type="text" id="userId" hidden></span>
                                    <span  sec:authorize="isAuthenticated()" sec:authentication="principal.userName"
                                           type="text" id="userName" hidden></span>
                                    <span  sec:authorize="isAuthenticated()" sec:authentication="principal.accountStatus"
                                           type="text" id="accountStatus" hidden></span>
                                </div>
                            </div>
                            <div class="dashboard-overview">
                                <div class="row">
                                    <div class="col-xl-12 col-12">
                                        <div class="profile-applications mb-50">
                                            <div class="profile-applications-main-block">
                                                <div class="profile-applications-form">
                                                        <div class="row mb-30">
                                                            <form action="#">
                                                            <div class="col-lg-10">
                                                                <div class="row">

                                                                    <!-- 合作企业 -->
                                                                    <div class="col-xl-10">
                                                                        <!-- Single Input Start -->
                                                                        <div class="single-input mb-25">
                                                                            <label>合作企业 <span>*</span></label>
                                                                            <input type="text" id="company" name="company" placeholder="请输入合作的公司名称">
                                                                            <div class="error" id="error_company"></div>
                                                                        </div>
                                                                        <!-- Single Input End -->
                                                                    </div>

                                                                    <!-- 优先级 -->
                                                                    <div class="col-xl-4">
                                                                        <div class="single-input mb-25" id="levelList">
                                                                            <label>优先级 <span>*</span></label>
                                                                            <div class="single-input mb-25">
                                                                                <select class="nice-select wide" onchange="click_level()" style="display: none;">
                                                                                </select>
                                                                            </div>
                                                                            <div class="error" id="error_level"></div>
                                                                        </div>
                                                                    </div>

                                                                    <!-- 合作开始时间 -->
                                                                    <div class="col-xl-4 col-lg-6 col-md-6 col-sm-6">
                                                                        <!-- Single Input Start -->
                                                                        <div class="single-input mb-25">
                                                                            <label>合作开始时间 <span>*</span></label>
                                                                            <input type="text" id="startData" name="startData" readonly style="height: 40px;">
                                                                            <div class="error" id="error_startData"></div>
                                                                        </div>
                                                                        <!-- Single Input End -->
                                                                    </div>

                                                                    <!-- 合作到期时间 -->
                                                                    <div class="col-xl-4 col-lg-6 col-md-6 col-sm-6">
                                                                        <!-- Single Input Start -->
                                                                        <div class="single-input mb-25">
                                                                            <label>合作到期时间 <span>*</span></label>
                                                                            <input type="text" id="endData" name="endData" readonly style="height: 40px;" >
                                                                            <div class="error" id="error_endData"></div>
                                                                        </div>
                                                                        <!-- Single Input End -->
                                                                    </div>

                                                                </div>
                                                            </div>
                                                            </form>

                                                            <form th:action="@{/companySer/company/image}" id="uploadPhoto"
                                                                  enctype="multipart/form-data" method="post">
                                                                <!-- 广告图片 -->
                                                                <div class="col-xl-10 col-lg-6 col-md-6 col-sm-6">
                                                                    <div class="single-input mb-25">
                                                                        <label>广告图片 <span>*</span></label>
                                                                        <div class="create-photo-left"  style="" >
                                                                            <label class="btn create-photo-left form-group" id="photo-logo">
                                                                                <input type="file" id="photo" name="photo" class="photo"  style="left:-9999px;position:absolute;">
                                                                                <p class="fa fa-camera" style="margin-top: 100px"><br>选择图片</p>
                                                                            </label>
                                                                        </div>
                                                                        <input type="text" name="type" value="advertisementPhoto" hidden>
                                                                        <input type="text" id="uuid" name="userId" hidden>
                                                                    </div>
                                                                </div>
                                                            </form>
                                                        </div>
                                                        <div class="row">
                                                            <div class="col-12" style="text-align: center;">
                                                                <button class="ht-btn theme-btn theme-btn-two" id="submit" style="background-color: #808080c2" disabled>提交</button>
                                                            </div>
                                                        </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 中间部分 End -->

        <div th:insert="~{/public::footer}"></div>
    </div>

    <div th:replace="~{/public::public-js}"></div>

    <script th:src="@{/js/vendor/bootstrap-datetimepicker.min.js}"></script>
    <script th:src="@{/js/vendor/locales/bootstrap-datetimepicker.zh-CN.js}"></script>
    <script th:src="@{/js/jquery-labelauty.js}"></script>

    <script th:src="@{/js/myjob/account/createAdvertisement.js}"></script>


</body>

</html>
